package player.ui;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.RenderingHints;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.BorderFactory;
import javax.swing.JButton;

public class LButton extends JButton{
	private static final long serialVersionUID = 9046539866726126654L;
	boolean mouseOver=false;
	
	protected LButton(){
		this("");
	}
	public LButton(String text) {
		super(text);
		setForeground(new Color(230,230,180));
		setBackground(new Color(50,50,50));
		MyBasicButtonUI ui=new MyBasicButtonUI();
		setUI(ui);
		setBorder(BorderFactory.createEtchedBorder());
		this.addMouseListener(new MouseListener(){

			public void mouseClicked(MouseEvent e) {
				
			}

			public void mouseEntered(MouseEvent e) {
				mouseOver=true;
			}

			public void mouseExited(MouseEvent e) {
				mouseOver=false;
			}

			public void mousePressed(MouseEvent e) {
				
			}

			public void mouseReleased(MouseEvent e) {
				
			}
			
		});
	}
	
}
